package com.kitty.game.fixed.controller;

import com.kitty.game.fixed.message.*;
import com.kitty.game.fixed.service.FixedTeamService;
import com.kitty.mina.annotation.RequestMapping;
import org.apache.mina.core.session.IoSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class FixedTeams {

    @Autowired
    FixedTeamService fixedTeamService;
    @RequestMapping
    public void openDlg(IoSession session, Fixedteamstartdata fixedteamstartdata){
        System.out.println("打开固定队界面");
    }

    /**
     * 确定固定队
     * @param session
     * @param fixedTeamStartConfirm
     */
    @RequestMapping
    public void confirmTeam(IoSession session, FixedTeamStartConfirm fixedTeamStartConfirm){
        fixedTeamService.confirmFixedTeam(session,fixedTeamStartConfirm);
    }
    /**
     * 确定固定队名称
     * @param session
     * @param fixedTeamStartConfirm
     */
    @RequestMapping
    public void confirmTeamName(IoSession session, ConfirmFixedTeamAppllation confirmFixedTeamAppllation){
        fixedTeamService.confirmFixedTeamName(session,confirmFixedTeamAppllation);
    }
    /**
     * 设置固定队名称
     * @param session
     * @param fixedTeamStartConfirm
     */
    @RequestMapping
    public void setConfirmTeamName(IoSession session, SetFixedTeamAppllation setFixedTeamAppllation){
        fixedTeamService.setConfirmTeamName(session,setFixedTeamAppllation);
    }

    /**
     * 完成固定队信息
     * @param session
     * @param finishBuildFixedTeam
     */
    @RequestMapping
    public void finishTeamName(IoSession session, FinishBuildFixedTeam finishBuildFixedTeam){
        fixedTeamService.finishTeamName(session,finishBuildFixedTeam);
    }
    /**
     * 取消固定队信息
     * @param session
     * @param finishBuildFixedTeam
     */
    @RequestMapping
    public void stopTeamName(IoSession session, StopBuildFixedTeam stopBuildFixedTeam){
        fixedTeamService.stopTeamName(session,stopBuildFixedTeam);
    }
    /**
     * 查询固定队信息
     * @param session
     * @param finishBuildFixedTeam
     */
    @RequestMapping
    public void queryFixedTeam(IoSession session, ReqFixedteamstartdata reqFixedteamstartdata){
        fixedTeamService.queryFixedTeam(session,reqFixedteamstartdata);
    }
}
